<?php

namespace app\index\controller;

use think\Controller;

class Base extends Controller
{

    public function _initialize()
    {
        $uid = session('uid');

        if(empty($uid)) {
            return $this->redirect('login/login');
        }

    }

}